// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import store from './store'
// 导入重置样式
import './assets/styles/reset.css'
import './assets/styles/border.css'
import './assets/styles/icon.css'
Vue.config.productionTip = false

// Vue.prototype.current = window.location.hash.substr(11)
function hashchange (params) {
  if (window.location.hash.substr(11) === '') {
    Vue.prototype.current = 'all'
  } else {
    Vue.prototype.current = window.location.hash.substr(11)
  }
}
// 节省利用率 以免无时无刻都调用
hashchange()
window.onhashchange = hashchange

/* eslint-disable no-new */

// components: template  可以写成render: c => c(App)
new Vue({
  el: '#app',
  router,
  data: {
    aaa: ''
  },
  components: {
    App
  },
  template: '<App/>',
  store
})
